NAME		= objs
SRCS		= sdl_tools.cpp	\
		sdl_key.cpp	\
		sdl_text.cpp	\
		Game.cpp	\
		main.cpp	\

OBJS		= $(SRCS:.cpp=.o)

CXX		= g++
CXXFLAGS	= -pipe -g -fPIC -DUNIX -W -Wall -Wextra -ansi -pedantic -I. -I./libAThreading -ggdb -g3 -pg
LDFLAGS		= -lm -lSDLmain -lSDL -lSDL_ttf -lSDL_image -pthread ./libAThreading/libAThreading.a -pg

all: $(NAME)

$(NAME): $(OBJS)
		$(CXX) -o $(NAME) $(OBJS) $(LDFLAGS)

clean:
		rm -rf $(OBJS)

fclean: clean
		rm -rf $(NAME)

re: fclean all
